Syntax
sup()
Description
xxx Description to be supplied.
Applies to
string
Examples
xxx Examples to be supplied.
See also
sub method
------------------------------------------------------------------------
tan method
Returns the tangent of its argument. The argument is in radians.
Syntax
tan(arg)
Applies to
Math
Examples
xxx Examples to be supplied.
See also
acos, asin, atan, cos, sin methods
------------------------------------------------------------------------
toGMTString method
Syntax
dateObj.toGMTString()
where dateObj is a date object.
Description
Converts a date to a String, using the Internet GMT conventions.
Applies to
Date
Examples
today.toGMTString()
If today is a date object, then toGMTString would convert the date to
GMT (UTC) using the operating system's time zone offset, and return a string
value in the following form:
Mon, 18 Dec 1995 17:28:35 GMT
------------------------------------------------------------------------
toLocaleString method
Syntax
dateObj.toLocaleString()
where dateObj is a date object.
Description
Converts a date to a String, using the locale conventions.
Applies to
Date
Examples
today.toLocaleString()
If today is a date object, then toLocaleString will return a string value
in the following form:
12/18/95 17:28:35
------------------------------------------------------------------------
toLowerCase method
The toLowerCase method of string objects converts the string to all upper case.
Syntax
toLowerCase()
Description
xxx Description to be supplied.
Applies to
string
Examples
For example, "ALPHABET"toLowerCase yields "alphabet"
See also
toUpperCase method
------------------------------------------------------------------------
toString method
For location, returns location.href, so you can use location as a string
without typing "href" For Date, converts a date to a string.
Syntax
toString()
Description
xxx Description to be supplied.
Applies to
location, Date methods
Examples
Here is an example of using toString with a date object, assuming theBigDay is a date object:
theBigDay.toString()
More Examples to be supplied.
------------------------------------------------------------------------
toUpperCase method
The toUpperCase method of string objects converts the string to all upper case.
Syntax
toUpperCase()
Description
xxx Description to be supplied.
Applies to
string
Examples
For example, "alphabet"toUpperCase yields "ALPHABET"
See also
toLowerCase method
------------------------------------------------------------------------
UTC method
Syntax
Date.UTC(year, month, mday [, hrs] [, min] [, sec])
Description
UTC takes comma-delimited date parameters and returns the number
of milliseconds since January 1, 1970 00:00:00, Universal Coordinated Time (GMT).
The arameters are:
•year - a year after 1900
•month - a month between 0-11
•date - day of the month between 1-31
•hrs - hours between 0-23
•min - minutes between 0-59
•sec - seconds between 0-59
UTC is a static method of Date. That means that you always use it as
Date.UTC(), rather than as a method of a date object you created.
Applies to
Date
Examples
The following statement creates a date object using GMT instead of local time:
gmtDate = new Date(Date.UTC(96, 11, 1, 0, 0, 0))
See also
parse method
------------------------------------------------------------------------
write method
Write HTML to the current window, in sequence with the HTML containing this SCRIPT. SCRIPTs have no effect on paragraphs or other structures in which they may occur.
Syntax
write()
Description
xxx Description to be supplied.
Applies to
document
Examples
xxx Examples to be supplied.
See also
writeln method
------------------------------------------------------------------------
writeln method
The same as write(), but adds a newline character. Note that this affects only preformatted text (inside a or tag).
Syntax
writeln()
Description
xxx Description to be supplied.
Applies to
document
Examples
xxx Examples to be supplied.
See also
write method